package com.forum.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName tag
 */
@TableName(value ="tag")
public class Tag implements Serializable {
    /**
     * 
     */
    @TableId(type=IdType.UUID)
    private String tagid;

    /**
     * 
     */
    private String tagname;

    /**
     * 
     */
    private Integer counts;

    /**
     * 
     */
    private Integer focus;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public String getTagid() {
        return tagid;
    }

    /**
     * 
     */
    public void setTagid(String tagid) {
        this.tagid = tagid;
    }

    /**
     * 
     */
    public String getTagname() {
        return tagname;
    }

    /**
     * 
     */
    public void setTagname(String tagname) {
        this.tagname = tagname;
    }

    /**
     * 
     */
    public Integer getCounts() {
        return counts;
    }

    /**
     * 
     */
    public void setCounts(Integer counts) {
        this.counts = counts;
    }

    /**
     * 
     */
    public Integer getFocus() {
        return focus;
    }

    /**
     * 
     */
    public void setFocus(Integer focus) {
        this.focus = focus;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Tag other = (Tag) that;
        return (this.getTagid() == null ? other.getTagid() == null : this.getTagid().equals(other.getTagid()))
            && (this.getTagname() == null ? other.getTagname() == null : this.getTagname().equals(other.getTagname()))
            && (this.getCounts() == null ? other.getCounts() == null : this.getCounts().equals(other.getCounts()))
            && (this.getFocus() == null ? other.getFocus() == null : this.getFocus().equals(other.getFocus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getTagid() == null) ? 0 : getTagid().hashCode());
        result = prime * result + ((getTagname() == null) ? 0 : getTagname().hashCode());
        result = prime * result + ((getCounts() == null) ? 0 : getCounts().hashCode());
        result = prime * result + ((getFocus() == null) ? 0 : getFocus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tagid=").append(tagid);
        sb.append(", tagname=").append(tagname);
        sb.append(", counts=").append(counts);
        sb.append(", focus=").append(focus);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}